import {FetchService} from "@/utils/request";
const fetchService = new FetchService();

//
export const getUserPage = (query:any)=>{
    return fetchService.get("/system/user/find",query);
}

export const addRoleMenu = (data:any)=>{
    return fetchService.post("/system/auth/menu",data);
}

export const getUserMenu = (data:any)=>{
    return fetchService.get("/system/auth/userMenu",data);
}
export const createMenu = (data:any)=>{
    return fetchService.post("/system/menu/add",data);
}
export const getAllMenu = (data:any)=>{
    return fetchService.get("/system/menu/findTree",data);
}